package com.group01.community.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 房间
 * </p>
 *
 * @author guoyuan
 * @since 2025-05-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ZyRoom extends Model<ZyRoom> {

    private static final long serialVersionUID=1L;

    /**
     * 房间id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "room_id")
    private Long roomId;

    /**
     * 小区id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long communityId;

    /**
     * 楼栋id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long buildingId;

    /**
     * 单元id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long unitId;

    /**
     * 楼层
     */
    private Integer roomLevel;

    /**
     * 房间编号
     */
    private String roomCode;

    /**
     * 房间名称
     */
    private String roomName;

    /**
     * 房屋建筑面积
     */
    private BigDecimal roomAcreage;

    /**
     * 算费系数
     */
    private BigDecimal roomCost;

    /**
     * 房屋状态
     */
    private String roomStatus;

    /**
     * 是否商铺
     */
    private String roomIsShop;

    /**
     * 是否商品房
     */
    private String roomSCommercialHouse;

    /**
     * 房屋户型
     */
    private String roomHouseType;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 备注
     */
    private String remark;


    @Override
    public Serializable pkVal() {
        return null;
    }

}
